package com.suse.service.community.service;

import com.suse.common.base.model.entity.Page;
import com.suse.service.community.entity.DiscussPost;

import java.util.List;

/**
 * <p>
 * Elasticsearch业务接口
 * </p>
 *
 * @author 辜玉彬
 * @since 2022-09-04 14:37
 */
public interface ElasticsearchService {

    void saveDiscussPost(DiscussPost post);

    void removeDiscussPost(int id);

    List<DiscussPost> searchDiscussPost(String keyword, Page page);

}
